@import './common/var.scss';
$toolbar-spacing:10px;
$toolbar-height:44px;

.lc-toolbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fcfcfc;
  z-index: 999;
  padding-bottom: constant(safe-area-inset-bottom);
  padding-bottom: env(safe-area-inset-bottom);

  .lc-toolbar-group {
    display: -webkit-box;
    display: flex;
    height: $toolbar-height;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 2px;
    box-shadow: 0 1px 6px rgba(0,0,0,.24);
    background-color: #fcfcfc;
    margin: 0 $toolbar-spacing $toolbar-spacing $toolbar-spacing;
  }
  /**更多*/
  .lc-toolbar-group-more {
    margin-bottom: $toolbar-spacing;
  }
  .van-actionsheet{
    .van-hairline--bottom{
      margin-bottom: 52px;
    }
    .van-actionsheet__cancel{
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 2;
      &:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 200%;
        height: 200%;
        -webkit-transform: scale(.5);
        transform: scale(.5);
        -webkit-transform-origin: 0 0;
        transform-origin: 0 0;
        pointer-events: none;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        border: 0 solid $border-color;
    }
    }
    
  }
}

.lc-toolbar-item {
  display: -webkit-box;
  display: flex;
  -webkit-box-flex: 1;
  flex: 1;
  flex-basis: 1e-9px;
  width: 1%;
  -webkit-box-align: center;
  align-items: center;
  background-color: $background-color;

  &:last-child {
    position: static;
    :after {
      display: none;
    }
  }
  &:active {
     opacity: .2; 
//background-color: $active-color;
    &:after {
      border-color: transparent;
    }
  }
  
  .lc-toolbar-chb {
    height: $toolbar-height;
    padding: 0;
    font-size: $fontsize-small;
    background-color: transparent;
    .van-checkbox__label {
      position: relative;
      margin-left: 5px;
    }
  }
  .van-button {
    position: relative;
    padding: 0 5px;
    border: 0 none;
    font-size: $fontsize-small;
    border-right: 1px solid #e5e5e5;
    width:100%;
    &:active {
      // background-color: transparent;
      &:after {
        display: none
      }
    }
    i{
      margin-right: 0;
    }
    i.van-icon-ellipsis {
      color: $gray-dark;
      font-size: $fontsize-large-xxx;
      margin: 10px;
    }
  }
}